﻿using System.Collections.Generic;
using System.Linq;

namespace Iot.AlarmDispose.Database;

/// <summary>
///     报警分类管理接口
/// </summary>
/// <typeparam name="TAlertClassify"></typeparam>
public interface IAlertClassifyDb<TAlertClassify>
{
    /// <summary>
    ///     获取所有报警分类
    /// </summary>
    /// <returns></returns>
    IQueryable<TAlertClassify> GetAlertClassify();

    /// <summary>
    ///     添加报警分类
    /// </summary>
    /// <returns></returns>
    void AddRange(IEnumerable<TAlertClassify> collection);
}